<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>店铺管理</h3>
                <h5>修改店铺</h5>
            </div>
        </div>
    </div>

    <div id="explanation" class="explanation">
        <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示 - 请按照下面提示填写信息</h4>
            <span title="收起提示" id="explanationZoom"></span>
        </div>
        <ul>
            <li></li>
        </ul>
    </div>
    <form action="{:U('Shop/getShop')}" method="post" class="form-horizontal" id="express_form">
        <input type="hidden" name="id" value="{$id}">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>店铺名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="店铺名称" class="input-txt" name="shop_name" value="{$shop['shop_name']}">
                    <p class="notic">快递名称必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>公司名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="公司名称" class="input-txt" name="company" value="{$shop['company']}">
                    <p class="notic">公司名称必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label for="record_no">审核状态 </label>
                </dt>
                <dd class="opt">
                    <select name="state" class="small form-control">
                        <option value="-1" <if condition="$shop['state'] eq -1"> selected="selected" </if> >不通过</option>
                        <option value="0" <if condition="$shop['state'] eq 0"> selected="selected" </if> >未审核</option>
                        <option value="1" <if condition="$shop['state'] eq 1"> selected="selected" </if> >已通过</option>
                    </select>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>店主</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="店主" class="input-txt" name="keeper" value="{$shop['keeper']}">
                    <p class="notic">店主必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>密码</label>
                </dt>
                <dd class="opt">
                    <input type="password" placeholder="密码" class="input-txt" name="password" id="keeper">
                    <p class="notic">密码必需填写</p>
                </dd>
            </dl>


            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>店主手机号码</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="店主手机号码" class="input-txt" name="phone" value="{$shop['phone']}">
                    <p class="notic">店主手机号码必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>门店电话</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="门店电话" class="input-txt" name="tel" value="{$shop['tel']}">
                    <p class="notic">如:0663-3385370</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>店铺地址</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="店铺地址" class="input-txt" name="address" value="{$shop['address']}">
                    <p class="notic">店铺地址必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>银行卡号</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="银行卡号" class="input-txt" name="bank_no" value="{$shop['bank_no']}">
                    <p class="notic">银行卡号必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>银行卡号所有人</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="银行卡号所有人" class="input-txt" name="bank_user_name" value="{$shop['bank_user_name']}">
                    <p class="notic">银行卡号所有人必需填写</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>营业执照图片</label>
                </dt>
                <dd class="opt">
                    <div class="input-file-show">
                        <span class="show">
                            <a id="img_a" target="_blank" class="nyroModal" rel="gal" href="">
                                <i id="img_i" class="fa fa-picture-o" onMouseOver="layer.tips('<img src={$shop[license_img]}>',this,{tips: [1, '#fff']});" onMouseOut="layer.closeAll();"></i>
                            </a>
                        </span>
                        <span class="type-file-box">
                            <input type="text" id="license_img" name="license_img" value="{$shop['license_img']}" class="type-file-text">
                            <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
                            <input class="type-file-file" onClick="GetUploadify(1,'','shop','img_call_back')" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图，点击按钮选择文件并提交表单后上传生效">
                        </span>
                    </div>
                    <span class="err"></span>
                    <p class="notic">请上传图片格式（JPG / PNG / JPEG）文件，建议尺寸(200x200)</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>开店说明</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="开店说明" class="input-txt" name="create_desc" value="{$shop['create_desc']}">
                    <p class="notic">开店说明必需填写</p>
                </dd>
            </dl>


            <dl class="row">
                <dt class="tit">
                    <label>审核说明</label>
                </dt>
                <dd class="opt">
                    <textarea name="state_desc" id="state_desc"></textarea>
                </dd>
            </dl>
            <div class="bot"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);">确认提交</a></div>
        </div>
    </form>
</div>
<script>

    //图片上传回调函数
    function img_call_back(fileurl_tmp) {
        //营业执照图片的路径展示
        $("#license_img").val(fileurl_tmp);
        //营业执照图片的放大
        $("#img_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }

    $("#submitBtn").click(function(){
        $("#express_form").submit();
    });
</script>
</body>
</html>